// dlg.txt

//MK Edit
//mark_quest_dest(zone,x,y,layer,quest);
//	code =
//		sf(,,2);
//		toggle_quest(19,10);
//		award_party_xp(MED_QUEST_XP);
//	break;

begintalkscript;

variables;

short this_town = 40;

begintalknode;
	tag = 1;
	condition = get_sdf(this_town,1) == 0;
	text1 = "You enter an icy, desolate valley in a remote corner of the Low Dhaga. There are no signs of human settlement. You have found a plot of land so useless that not even the Ro want it.";
	text2 = "The wind howls down the valley. The longer you are battered by the storm, the more disoriented you become. You start hearing things. Whispers. Voices, mixed in with the wind. Tiny messages in lost languages.";
	text3 = "Not a huge mystery why nobody wants to spend time here.";
	code =
		sf(this_town,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(this_town,2) == 0;
	text1 = "You are at the south end of a cold, sandy valley. Looking up to the northwest, you see more gashes in the mountains, full of ice, bare rock, and worn monuments to dead Ro. This is a burial ground, stretching up to the wastes of the High Litha.";
	text2 = "As miserable as this land is, some Ro have still chosen to settle here. Their tents are circled around a campfire. The fire is out, but the ashes are still warm. Whoever is hiding here, they ran for cover when you approached.";
	text3 = "The Low Dhaga is full of raiders right now. Some of them might be hiding here.";
	code =
		sf(this_town,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(this_town,3) == 0;
	text1 = "You enter an old Rokaj crypt. Stone vaults have been constructed to either side, a sturdy warehouse for countless jars of ashes. The dead here have been long forgotten. You are the first explorer to come down and visit them in a very long time.";
	text2 = "As you walk through the gate, you hear angry hissing and muttering. Little whirlwinds pick up the dust from the floor around you.";
	text3 = "Yes, not even the Misttalkers come here anymore. These dead are very bitter about the neglect. As you walk under the gate, it rattles slightly.";
	code =
		sf(this_town,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(this_town,4) == 0;
	text1 = "You enter one of the old Ro crypts that honeycomb this part of their mountains. After the senseless ambush outside, you are alert. Even the crumbling bones scattering the floor can be a threat.";
	text2 = "Then you see motion in the shadows to the north. You can barely make out a man wearing the robes of a High Lithan. He waves his hands and chants. Moments later, the bones begin to knit together, forming a long gauntlet of defenders.";
	text3 = "The mysterious man runs out of the crypt through an arch to the west.";
	code =
		activate_hidden_group(2);
		add_ability(4006,10,283,0);
		add_ability(4009,10,283,0);
		add_ability(4011,10,283,0);
		add_ability(4012,10,283,0);
		set_strategy(4011,2);
		set_strategy(4012,2);
		set_strategy(4013,2);
		sf(this_town,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(this_town,5) == 0;
	text1 = "__";
	code =
		sf(this_town,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(this_town,6) == 0;
	text1 = "__";
	code =
		sf(this_town,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(this_town,7) == 0;
	text1 = "__";
	code =
		sf(this_town,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(this_town,8) == 0;
	text1 = "__";
	code =
		sf(this_town,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(this_town,9) == 0;
	text1 = "__";
	code =
		sf(this_town,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(this_town,10) == 0;
	text1 = "__";
	code =
		sf(this_town,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(this_town,11) == 0;
	text1 = "__";
	code =
		sf(this_town,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(this_town,12) == 0 && gf(40,20) > 0 && gf(40,21) > 0;
	text1 = "The gates to the north and south are now open. You have created a new, secret route between the Low Dhaga and the High Litha.";
	text2 = "Such a thing can be very useful to soldiers and smugglers. You can only hope it isn't used for too much crime.";
	text3 = "(Opening gates between provinces makes traveling using the World Map slightly faster.)";
	code =
		sf(this_town,12,1);
		clear_town(40);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "Rollo, the leader of this band of rogues, falls. You have brought these brigands to justice. You don't know if they actually did any crimes or what those crimes were. But they got some sort of justice. They made any other result impossible.";
	text2 = "No doubt, five minutes after you leave, another group of brigands will move in here and start plotting trouble. It is the way of the Low Dhaga. Of the Rokaj.";
	code =
		set_dialogue_pic(843); // 
	break;

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "The gate slams shut behind you. It is hard to be surprised. You draw your weapon and wait for the assault.";
	text2 = "Moments later, angry spirits in the chambers to the east and west begin to rise up through the floor. They are old shades, fragile and indistinct, only held together by their rage at being forgotten.";
	text3 = "They are wispy things, but there are a lot of them. In sufficient numbers, a determined foe can overwhelm even a [P] of Haven.";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "The ghost at the altar has been destroyed. It flies apart and vanishes into nothingness.";
	text2 = "Moments later, the army of angry dead begins to fade. They vanish into mist. The gates open, freeing you. A final gesture from your vanquished foe. The Misttalkers of the High Litha will be grateful to you for cleaning up this mess.";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "The enormous jug is sealed with wax. You open it and find that it's full of quicksilver. It was left here as an offering. If you send a team to collect it, you will be able to make good use of it.";
	code =
		if (gf(40,16) == 0) {
			sf(40,16,1);
			activate_mine_resource(42);
			}
	break;
	
begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "You have fought through a long line of raiders and their pets, who engaged in a spirited, doomed effort to stop the advance of Haven. Now you have reached their innermost band of defenders. A man of the Low Dhaga steps out to stop you.";
	text2 = "His weapon is out, and he is furious. It is a quirk of the Ro that, the closer they get to death, the angrier they become. _So I hope you are satisfied, Haven. With all the troubles you have, you still have time to force an unnecessary slaughter._";
	text3 = "He looks you in the eye, waiting for a response. You aren't quite sure what to say.";
	code =
		set_dialogue_pic(843); // 
	break;
	
begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_I have come to the Low Dhaga to destroy the raiders that attack Haven!_";
	text1 = "_Were we raiding anyone? Were we on the hunt? No. We were hiding in this miserable, icy pit. We have nothing to do with those fools._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_Why are all of you attacking me?_";
	text1 = "_We had no choice! When you came, death came with you. Better to face it here than in chains in Etzae. A quick sort is kinder than what they do. The raiders have inspired the master there to creative cruelty._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_So. What are you doing here?_";
	text1 = "_I am Rollo of the Dhaga, and I am hiding! Hiding from the punishments for our crimes. Hiding from the raiders who would force us to join them. Hiding from Haven and the madness that spreads everywhere._";
	text2 = "As he speaks, the other brigands are grabbing their weapons. The Ro love to give flowery, impassioned speeches before they die on Haven's blades.";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_You are not part of the raiders?_";
	text1 = "_No. Of course not. We are all accused of crimes. We came here to hide from your 'justice'. We are brigands of the hills. That is not a shameful fate for a Dhagan. Our people have always raided and been raided._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_How do you stay alive?_";
	text1 = "_We do what we need to._ Which means theft, most likely.";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_So you are criminals, running from Haven justice._";
	text1 = "_We are not criminals! We are accused of things, but none of us are guilty._ The warriors nod in agreement. _We are just not tamed. Low Dhagans are warriors, no matter how much Haven tries to buy us._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_What crimes have you committed?_";
	text1 = "_We have done no crimes! We are accused of things, but none of us are guilty._ The warriors nod in agreement. _We are just not tamed. Low Dhagans are warriors, no matter how much Haven tries to buy us._";

begintalknode;
	state = 13;
	nextstate = 14;
	condition = 1;
	question = "_I need all of you to leave here._";
	text1 = "_We can't. Outcasts like us have to hide in worthless valleys like this one. There is no other choice. We can't leave here. Once we are gone, what could we do?_";

begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_You could just turn yourselves in._";
	text1 = "_And let the Master of Etzae use us as playthings? Torment us and kill us for fun? No. We refuse._";

begintalknode;
	state = 14;
	nextstate = 15;
	condition = 1;
	question = "_Just find somewhere else to hide._";
	text1 = "_Even if we could, we are still hunted. You will just track us down, kill more of us, and drive the rest out._";

begintalknode;
	state = 13;
	nextstate = 15;
	condition = 1;
	question = "_I should bring you to justice._";
	text1 = "_And let the Master of Etzae use us as playthings? Torment us and kill us for fun? No. We refuse._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_All of this could have been avoided if you'd just not attacked me._";
	text1 = "_The warriors at the front gate were fools. They did what they did. Now we are forced to face the consequences._";

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_You need to leave here or die._";
	text1 = "_Then we will fight. Haven thinks it is so strong, so unbeatable. If I must die, I will do it testing you. For the Rokaj!_ The warriors howl and charge.";
	action = END_TALK;
	
begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_I'll allow you to stay here. Just stay out of trouble._";
	text1 = "_It is too late for that. You know we are here. You know we attacked a Havenite. We are lost. When Raasa Lawita hears what we did, he will punish us to please you._";
	text2 = "_If I must die, I choose to do it killing Havenites. For the Rokaj!_ The warriors howl and charge.";
	action = END_TALK;

begintalknode;
	state = 15;
	nextstate = -1;
	condition = 1;
	question = "_I guess I'll bring you to justice for whatever crimes you did. I'm sure they were bad._ Attack.";
	text1 = "The brigands laugh, an impressive show of Ro composure. _Arrogant Haven thinks it is unbeatable. If we die, we'll take you with us. For the Rokaj!_ The warriors howl and charge.";
	action = END_TALK;
	

	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				